<%--@elvariable id="contractorId" type="java.lang.String"--%>
<%--@elvariable id="safeMeasures" type="java.lang.String"--%>
<%--@elvariable id="fireLicense" type="com.weitu.worklicense.entity.FireLicense"--%>
<%--@elvariable id="workTypeId" type="java.lang.String"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>用火作业许可添加</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/workLicense/fireLicense/edit.js"></script>
</head>
<body>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">票证编号:</label>
                    <input readonly class="easyui-textbox" value="${fireLicense.code}" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="workTypeId" name="workTypeId" value="${workTypeId}">
                    <input type="hidden" class="hide" id="applyId" name="applyId" value="${fireLicense.applyId}">
                    <input type="hidden" class="hide" id="id" name="id" value="${fireLicense.id}">
                </div>
                <div class="form_one">
                    <label class="lable-style">作业申请:</label>
                    <input id="workTypeName" name="workTypeName" readonly value="用火作业" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">用火级别:</label>
                    <input id="fireLevelName" name="fireLevelName" value="${fireLicense.fireLevelName}" readonly data-options="required:true" class="easyui-textbox" type="text" style="width:240px;">
                    <input type="hidden" id="fireLevelId" name="fireLevelId" value="${fireLicense.fireLevelId}" readonly>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划开始时间:</label>
                    <input id="planStartTime" name="planStartTime" value="${fireLicense.planStartTime}" readonly class="easyui-datetimebox" data-options="required:true,validType:'startDateCompare[\'#planEndTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">计划结束时间:</label>
                    <input id="planEndTime" name="planEndTime" value="${fireLicense.planEndTime}" readonly class="easyui-datetimebox" data-options="required:true,validType:'endDateCompare[\'#planStartTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one hide">
                    <label class="lable-style">采样点:</label>
                    <input id="samplingPoint" name="samplingPoint" readonly value="${fireLicense.samplingPoint}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
            </div>
            <div class="hide" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">采样检测时间:</label>
                    <input id="samplingTime" name="samplingTime" readonly value="${fireLicense.samplingTime}" class="easyui-datetimebox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">分析结果:</label>
                    <input id="samplingResult" name="samplingResult" readonly value="${fireLicense.samplingResult}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">分析人:</label>
                    <input id="samplingUserName" name="samplingUserName" readonly value="${fireLicense.samplingUserName}" class="easyui-textbox" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="samplingUserId" readonly name="samplingUserId" value="${fireLicense.samplingUserId}">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">申请人:</label>
                    <input id="applyUserName" name="applyUserName" value="${fireLicense.applyUserName}" readonly class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="applyUserId" value="${fireLicense.applyUserId}" readonly id="applyUserId" >
                </div>
                <div class="form_one">
                    <label class="lable-style">申请部门:</label>
                    <input id="applyDeptName" name="applyDeptName" value="${fireLicense.applyDeptName}" readonly class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="applyDeptId" value="${fireLicense.applyDeptId}" readonly id="applyDeptId" >
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">用火具体部位及内容:</label>
                    <input id="content" name="content" readonly value="${fireLicense.content}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">用火单位:</label>
                    <c:if test="${empty fireLicense.contractorAuditId}">
                        <input id="deptName" name="deptName" value="${fireLicense.deptName}" readonly class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                        <input type="hidden" class="hide" id="isCheckContractor" value="0" name="isCheckContractor">
                        <input type="hidden" class="hide" id="deptId" name="deptId" value="${fireLicense.deptId}">
                        <input type="hidden" class="hide" id="contractorId" name="contractorId">
                    </c:if>
                    <c:if test="${empty fireLicense.deptId}">
                        <input id="deptName" name="deptName" value="${fireLicense.contractorName}" readonly class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                        <input type="hidden" class="hide" id="isCheckContractor" value="1" name="isCheckContractor">
                        <input type="hidden" class="hide" id="deptId" name="deptId" value="${fireLicense.contractorAuditId}">
                        <input type="hidden" class="hide" id="contractorId" name="contractorId" value="${contractorId}">
                    </c:if>
                </div>
                <div class="form_one">
                    <label class="lable-style">危害识别:</label>
                    <input id="dangerTypeIds" name="dangerTypeIds" readonly value="${fireLicense.dangerTypeIds}" class="easyui-combobox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">用火人:</label>
                    <input id="fireStaffNames" name="fireStaffNames" readonly value="${fireLicense.fireStaffNames}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="fireStaffIds" value="${fireLicense.fireStaffIds}" id="fireStaffIds" >
                </div>
                <div class="form_one hide">
                    <label class="lable-style">用火人:</label>
                    <input id="fireUserNames" name="fireUserNames" readonly value="${fireLicense.fireUserNames}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="fireUserIds" value="${fireLicense.fireUserIds}" id="fireUserIds" >
                </div>
                <div class="form_one">
                    <label class="lable-style">监火人:</label>
                    <input id="watchStaffNames" name="watchStaffNames" readonly value="${fireLicense.watchStaffNames}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="watchStaffIds" value="${fireLicense.watchStaffIds}" id="watchStaffIds" >
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">主要安全措施:</label>
                    <input id="safeMeasures" name="safeMeasures" readonly value="${safeMeasures}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="com.weitu.accessory.bean.AccessoryPackageInfo"--%>
                    <accessory:accessorySimple packageKey="fire_license" packageInfos="${accessoryList}" uploadUserId="${sessionScope.loginUser.id}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
